#! /usr/bin/python3
# coding=utf-8
# @Time: 2023/1/5 14:22
# @Author: Loneliness Burial

n = input("请输入一个整数N：")
sum = 0
for i in range(int(n)):
    sum += i + 1
print("1到N的求和结果为：", sum)
